package com.sdweizan.sdk.bytedance.bean.refund.general;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseRequest;
import com.sdweizan.sdk.bytedance.constants.BdConstants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/** 同步退款审核结果* */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BdGeneralSyncRefundResultRequest implements BdBaseRequest {

  /** require 审核状态，1-同意退款 2-不同意退款* */
  @JSONField(name = "refund_audit_status")
  private Integer refundAuditStatus;

  /** require 交易系统侧退款单号,长度 <= 64 byte* */
  @JSONField(name = "refund_id")
  private String refundId;

  /** 不同意退款信息(不同意退款时必填)，长度 <= 512 byte* */
  @JSONField(name = "deny_message")
  private String denyMessage;

  @Override
  public String requestUri() {
    return BdConstants.OPEN_HOST + "/api/trade_basic/v1/developer/refund_audit_callback";
  }
}
